package com.wisewin.pose.api.controller;

import com.wisewin.pose.api.controller.base.BaseController;
import com.wisewin.pose.config.dto.ResultDTO;
import com.wisewin.pose.entity.db.UserPrescriptionDO;
import com.wisewin.pose.service.UserPrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/userPrescription")
public class UserPrescriptionController extends BaseController {

    @Autowired
    private UserPrescriptionService userPrescriptionService;

    @PostMapping("/queryDetail")
    public ResultDTO queryDetail(@RequestBody UserPrescriptionDO userPhysicalRecordDO) {
        return userPrescriptionService.queryDetail(userPhysicalRecordDO.getRecordId());
    }
}
